#!/usr/bin/env python
# encoding: utf-8


"""
@file: triangle_constant.py
@time: 2016/12/14 下午3:59
"""
# 三角形的一些常量

from mathsolver.functions.base import *
from sympy import symbols

SIDES = FiniteSet(sympify('a'), sympify('b'), sympify('c'))
ANGLES = FiniteSet(sympify('A'), sympify('B'), sympify('C'))
LINE_SUBS = (('AB', 'c'), ('AC', 'b'), ('BC', 'a'))
BASE_LINE_SUBS = (('BaseLine((A, B))', 'c'), ('BaseLine((A,C))', 'b'), ('BaseLine((B, C))', 'a'))
TRIANGLE_ANGLES = symbols('A, B, C')
TRIANGLE_ANGLES_SET = FiniteSet(*TRIANGLE_ANGLES)
# 三角形表示
# TRIANGLE_NAME_SEARCH_KEY = sympify('my_triangle')
TRIANGLE_NAME_SEARCH_KEY = sympify('triangle')
# 目标三角形表达式
TARGET_TRIANGLE_EXPR_KEY = sympify('target_triangle_express_key')
# 三角形形状
TRIANGLE_SHAPR_SEARCH_KEY = sympify('triangle_type')
# 三角形不等式
TRIANGLE_INEQ_SEARCH_KEY = sympify('triangle_ineq')
# 锐角三角形标识 acute_triangle
ACTUE_TRIANGLE = 'acute_triangle'
# 钝角三角形标识 obtuse_triangle
OBTUSE_TRIANGLE = 'obtuse_triangle'
# 是否进入三角函数最值计算中
TRIANGLE_OP_CALED = sympify('cal_op_triangle')
# 三角形条件存储在known中的key
TRIANGLE_KNOWN_KEY = 'triangle_cond_eqs'
